//
//  NITextViewSubclass.h
//  NewIdeasAPI_Base
//
//  Created by 　罗若文 on 16/9/13.
//  Copyright © 2016年 罗若文. All rights reserved.
//

#import <UIKit/UIKit.h>

///回调
typedef void (^NITextViewSubclassBlock)(id textView);

@interface NITextViewSubclass : UITextView

#pragma mark - 要想让Server层能够通过反射机制取值,就要定义name,value.并实现gettingValue和settingValue方法
@property (nonatomic,strong) NSString * name;
///self.text
@property (nonatomic,strong) NSString * value;
-(NSString *)gettingValue;
-(void)settingValue:(id)value;
#pragma mark ------------------------------------------------------------------------------------

/// 根据Settings.plist配置文件中NIControlProperties对应的plistStyleKey配置设置UITextView
-(instancetype)initWithFrame:(CGRect)frame text:(NSString *)text plistStyleKey:(id)plistStyleKey;
/// plistStyleKey配置设置UITextView delegate
-(instancetype)initWithFrame:(CGRect)frame text:(NSString *)text plistStyleKey:(id)plistStyleKey delegate:(id)delegate;

///设置输入框的点击 (之后是不能输入.点击出发该方法)
-(void)textViewClick:(NITextViewSubclassBlock)block;

@end
